package itd.newbee.mall.newbeemall.Dao;

import io.swagger.v3.oas.annotations.Parameter;
import itd.newbee.mall.newbeemall.entity.MallUser;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @description: TODO 
 * @author Administrator
 * @date 2025/3/10 10:32
 * @version 1.0
 */
public interface MallUserMapper {
    int deleteByPrimaryKey(Long userId);

    int insert(MallUser record);

    int insertSelective(MallUser record);

    MallUser selectByPrimaryKey(Long userId);

    MallUser selectByLoginName(String loginName);

    MallUser selectByLoginNameAndPasswd(@Param("loginName") String loginName, @Param("password") String password);

    int updateByPrimaryKeySelective(MallUser record);

    int updateByPrimaryKey(MallUser record);

//    List<MallUser> findMallUserList(PageQueryUtil pageUtil);
//
//    int getTotalMallUsers(PageQueryUtil pageUtil);

    int lockUserBatch(@Param("ids") Long[] ids, @Param("lockStatus") int lockStatus);}
